package com.gy.api.mobile.app;

import com.gy.api.base.ApiIndex;
import com.gy.api.base.R;
import com.gy.api.pc.examine.service.IExamineService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Api( tags = ApiIndex.TaskController)
@RestController
@RequestMapping("/flow/manage")
public class FlowController {
    @Autowired
    private IExamineService service;


    @ApiOperation("撤回")
    @RequestMapping(value = "/withdraw", method = RequestMethod.GET)
    @ResponseBody
    public R withdraw(@RequestParam("businessId")@ApiParam(value = "业务数据ID") String businessId) {
        service.withdraw(businessId);
        return R.ok("流程审核撤回成功。");
    }

}
